from config.scaffolding_config import getBlacklist4IpConfig, getWhitelist4IpConfig, getRateLimitIpConfig, \
    getRateLimitSvrConfig, getMethodConfig, getContentTypeConfig, getBotUAConfig, getTrustedReferConfig

FILTERS_IP_BLACKLIST = getBlacklist4IpConfig()
FILTERS_IP_WHITELIST = getWhitelist4IpConfig()
FILTER_METHOD_LIST = getMethodConfig()
FILTER_CONTENT_TYPE_LIST = getContentTypeConfig()
FILTER_BOT_UA_LIST = getBotUAConfig()
FILTER_TRUSTED_REFER_LIST = getTrustedReferConfig()

ratelimitIpConfig = getRateLimitIpConfig()
FILTERS_RATELIMIT_IP_LIMITS = ratelimitIpConfig['limit']
FILTERS_RATELIMIT_IP_WINDOW = ratelimitIpConfig['window']

ratelimitSvrConfig = getRateLimitSvrConfig()
FILTERS_RATELIMIT_SVR_LIMITS = ratelimitSvrConfig['limit']
FILTERS_RATELIMIT_SVR_WINDOW = ratelimitSvrConfig['window']
